<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>菜单编辑</title>
<jsp:include page="/common.jsp"></jsp:include>
</head>
<body>
${title }
<form id="form" class="form-horizontal well">
		<input type="hidden" name="id" value="${t.id }" class="well">
		<div class="control-group">
			<label class="control-label">名称:</label>
			<div class="controls">
				<input type="text" name="name" class="input-medium" value="${t.name }">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">路径:</label>
			<div class="controls">
				<input type="text" name="url" class="input-medium" value="${t.url }">
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label">功能:</label>
			<div class="controls">
				<input type="text" name="function" class="input-medium" value="${t.function }">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">顶部:</label>
			<div class="controls">
				<input type="text" name="top" class="input-medium" value="${t.top }">
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label">父节点:</label>
			<div class="controls">
				<input name="father.id" type="hidden" value="${t.father.id }">
				<input type="text" name="father.name" class="input-medium" value="${t.father.name }">
				<a class="icon-search" onclick="search_d('system/menu?queryFather','father.id,father.name',1)"></a>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label">序号:</label>
			<div class="controls">
				<input name="sort" class="input-medium" type="text" value="${t.sort }">
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label">状态:</label>
			<div class="controls">
				<input type="text" name="status" class="input-medium" value="${t.status }" >
			</div>
		</div>
		 <div class="control-group">
                <div class="controls">
                    <c:if test="${status==view}">
                        <button class="btn btn-primary" onclick="form_submit('system/menu?save')">保存</button>
                    </c:if>
                    <a class="btn btn-primary" onclick="go('system/menu?list')">返回</a>
                </div>
            </div>
	</form>
	<jsp:include page="/foot.jsp"></jsp:include>
</body>
</html>